package SunDayCoding.ControllerStudy;

public class ForFor1 {
    public static void main(String[] args) {
        for (int i = 0; i < 4; i++) {//0  1 2  3
            for (int z = 0; z < 3-i; z++) {//3 2 1  0
                System.out.print(" ");
            }
            for (int j = 0; j < 2*i+1; j++) {
                System.out.print("*");
            }
            System.out.println();
        }

        for (int i = 0; i < 3; i++) {//0  1 2
            for (int z = 0; z < i+1; z++) {//1 2 3
                System.out.print(" ");
            }
            for (int j = 0; j < 5-2*i; j++) {
                System.out.print("*");
            }
            System.out.println();
        }



    }
}
